package com.csy.ocmis.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.csy.ocmis.entity.SysUser;
import com.csy.ocmis.mapper.SysUserMapper;
import com.csy.ocmis.service.ISysUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author csy
 * @since 2020-12-06
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {

    @Autowired
    private SysUserMapper sysUserMapper;
    @Override
    public SysUser checkName(String loginname) {
        QueryWrapper<SysUser> wrapper = new QueryWrapper<>();
        wrapper.eq("loginname",loginname);
        return sysUserMapper.selectOne(wrapper);
    }
}
